home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ IE Window Title.xpl < prev    next >
Text File  |  2003-11-20  |  1KB  |  56 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH 1"="Internet\Internet Explorer\Window Settings"
  5. "UIPATH 2"="Internet\Internet Explorer\Appearance"
  6. "NAME"="Window Title"
  7. "VERSION"="1.30"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Title"
  10. "DESCRIPTION 1"="You can change the title of the Internet Explorer window here."
  11. "DESCRIPTION 2"="To have to original title again, clear the field and press "Apply"."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"="Thanks to cicp^p for his help!"
  17.  
  18.  
  19. Sub Plugin_Initialize 
  20.  if RegPathExists("HKCU\Software\Microsoft\Internet Explorer") then
  21.     s=RegReadValue("HKCU\Software\Microsoft\Internet Explorer\Main\Window Title")
  22.     SetUIElement 1,s
  23.  else
  24.     Disable()
  25.  end if
  26. End Sub
  27.  
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32.  
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  s=GetUIElement(1)
  36.  
  37.  if len(s)=0 then
  38.  
  39.   'If values exists, delete it
  40.   s=RegReadValue("HKCU\Software\Microsoft\Internet Explorer\Main\Window Title")
  41.   if IsEmpty(s)=false then
  42.      Call RegDeleteValue("HKCU\Software\Microsoft\Internet Explorer\Main\Window Title")
  43.   end if
  44.  
  45.  else
  46.   Call RegWriteValue("HKCU\Software\Microsoft\Internet Explorer\Main\Window Title",s,1)
  47.  end if
  48. End Sub
  49.  
  50.  
  51. Sub Plugin_Terminate 
  52. End Sub
  53.  
  54.  
  55.  
  56.